package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.PrivateMassage;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PrivateMassageMapper {
    int insert(PrivateMassage record);

    List<PrivateMassage> selectAll();

    List selectForList(QueryObject qo);

    void changeState(@Param("id")Long id,@Param("state") boolean state);

    void insertPrivateMessage(PrivateMassage pm);

    int queryMessageCount(@Param("userId") Long id, @Param("state") int state);
}